﻿using QFramework;

namespace HKTools
{
    public class Query_ConditionState : AbstractQuery<bool>
    {
        public HK_ConditionType conditionType;

        public Query_ConditionState(HK_ConditionType _conditionType)
        {
            conditionType = _conditionType;
        }

        protected override bool OnDo()
        {
            if (this.GetModel<IHK_TaskModel>().AchieveConditions.Contains(conditionType))
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}